import {createRouter, createWebHistory, type Router} from 'vue-router'
import {staticRoutes} from '@/router/static'
import {Session} from '@/utils/storageUtil'
import {cacheKeys} from '@/stores/constant/cacheKey'

const router: Router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes: staticRoutes
})

Session.set(cacheKeys.ROUTER_INIT, false)

export default router
